<?php
	require '../utils/conn.php';
	include_once '../models/recommand.php';
	
	$recommandId = $_REQUEST['recommandId'];
	$title = $_REQUEST['title'];
	$status = $_REQUEST['status'];
	$timestamp = time();
	
	$query = "UPDATE t_recommand SET r_title='$title', r_status=$status, r_timestamp='$timestamp' WHERE r_id=".$recommandId;
	$result = mysql_query($query) or die("update failed：". mysql_error());
	
?>